//
//  HelpMeBagHomeVC.m
//  MRBang
//
//  Created by 铅笔 on 16/5/9.
//  Copyright © 2016年 杭州易网新科技. All rights reserved.
//

#import "HelpMeBagHomeVC.h"
#import "HelpMeBagBankListVC.h"

@interface HelpMeBagHomeVC ()

@end

@implementation HelpMeBagHomeVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
//    self.navigationItem.leftBarButtonItem = nil;
    
    self.title = @"帮我贷";
    
    //创建视图
    [self initWithHelpMeBagHomeVCSubviews];
}

- (void) viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    self.tabBarController.tabBar.hidden = YES;
    self.navigationController.navigationBarHidden = NO;
}

- (void) initWithHelpMeBagHomeVCSubviews
{
    //展位的背景图
    UIImageView *imageView_fullImage = [[UIImageView alloc] initWithFrame:CGRectMake(0,64, kScreenWidth, kScreenHeight-64)];
    [self.view addSubview:imageView_fullImage];
    imageView_fullImage.image = [UIImage imageNamed:@"helpbaghomeBG"];
    
    //button
    UIButton *button_helpMeDo = [[UIButton alloc] initWithFrame:CGRectMake(48*PROPORTION_WIDTH,kScreenHeight-64-156*PROPORTION_WIDTH,kScreenWidth - 48*PROPORTION_WIDTH*2, 93*PROPORTION_WIDTH)];
    [self.view addSubview:button_helpMeDo];
    
    button_helpMeDo.backgroundColor = [UIColor whiteColor];
    button_helpMeDo.layer.cornerRadius = 3.0;
    button_helpMeDo.clipsToBounds = YES;
    [button_helpMeDo setTitle:@"帮我贷" forState:UIControlStateNormal];
    [button_helpMeDo setTitleColor:COLOR_TEXT_ORANGE forState:UIControlStateNormal];

    [button_helpMeDo addTarget:self action:@selector(helpMeDoneAction) forControlEvents:UIControlEventTouchUpInside];
}

//点击按钮执行事件
- (void) helpMeDoneAction
{
    HelpMeBagBankListVC *helpMeBagView = [[HelpMeBagBankListVC alloc] init];
    [self.navigationController pushViewController:helpMeBagView animated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];

}

@end
